{include file='../../../PublicView/include.html'}
<script src="/assets/msglist.js"></script> 
<script src="/assets/admin_index.js"></script> 
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/left.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="#">VIP大奖站</a> <span class="divider">/</span></li>
					<li><a href="#">登记店铺</a> <span class="divider">/</span></li>
					<li class="active">店铺信息</li>
				</ul>
		{include file='../../../PublicView/showmessage.html'}
			<!--内容部分-->
<div class="row">
  <div class=" span21 doc-content">
	<div class="tab-nav-wrapper">
		<div class="tab-nav-inner">
			<ul class="tab-nav-list">
				<li class="bui-nav-tab-item tab-nav-actived" data-name="Allmsgs">
					<s class="l">
					</s>
					<div class="tab-item-inner">
						<div style="padding:3px;float:left"><span class="x-icon x-icon-small x-icon-info"><i class="icon icon-white icon-list-alt"></i></span></div>
						<span class="tab-item-title ">
							所有消息
						</span>
					</div>
					<s class="r">
					</s>
				</li>
				<li class="bui-nav-tab-item"  data-name="watting">
					<s class="l">
					</s>
					<div class="tab-item-inner">
						<div style="padding:3px;float:left"><span class="x-icon x-icon-small x-icon-warning"><i class="icon icon-white  icon-time"></i></span></div>
						<span class="tab-item-title">
							待回复消息
						</span>
					</div>
					<s class="r">
					</s>
				</li>
				<li class="bui-nav-tab-item" data-name="responsed">
					<s class="l">
					</s>
					<div class="tab-item-inner">
						<div style="padding:3px;float:left"><span class="x-icon x-icon-small x-icon-success"><i class="icon icon-white icon-check"></i></span></div>
						<span class="tab-item-title">
							已回复消息
						</span>
					</div>
					<s class="r">
					</s>
				</li>
				<li class="bui-nav-tab-item" data-name="punished">
					<s class="l">
					</s>
					<div class="tab-item-inner">
						<div style="padding:3px;float:left"><span class="x-icon x-icon-small x-icon-error"><i class="icon icon-white   icon-pencil"></i></span></div>
						<span class="tab-item-title">
							处罚及管理消息
						</span>
					</div>
					<s class="r">
					</s>
				</li>
			</ul>
		</div>
	</div>
    <table cellspacing="0" class="table table-bordered">
      <thead>
        <!--tr><th colspan="6">
        <ul class="toolbar">
          <li><label class="checkbox"><input type="checkbox"><a href="#">全选</a></label></li>
          <li><button class="button button-danger">所有驳回</button></li>
          <li><button class="button button-success">审核通过</button></li>
          <li><button class="button button-inverse">审核不通过</button></li>
        </ul>
        </th></tr-->
        <tr>
          <th></th>
          <th>发信人</th>
          <th>收信人</th>
          <th>消息内容</th>
		  <th>操作</th>
          <th>回复</th>
		  <th>时间</th>
        </tr>
		<tr class="clone hidden">
		<td width="30" class="c1"><input type="checkbox"></td>
		<td width="40" class="c2"></td>
		<td width="40" class="c3 title"></td>
		<td class="c4"></td>
		<td width="40" class="c5"></td>
		<td width="40" class="c6"></td>
		<td width="50" class="c7"></td>
		</tr>
		<tr class="bui-grid-cascade-row hidden msgclone">
		<td width="30" class="c1"></td>
		<td class="bui-grid-cascade-cell msginfo" colspan="6">
		<div style="padding: 10px 20px;"><h2>详情信息</h2><p>详情、详情</p></div>
		</td>
		</tr>
      </thead>
      <tbody class='tbodya'>
{foreach from=$data item=curr_data key=key}
	<tr class="tr{$curr_data.id}" data-sid="{$curr_data.sid}">
		<td width="30"><input type="checkbox"></td>
		<td width="40">
		{if $curr_data.fromid == "0"}<span class="label label-warning">管理员</span>{/if}
			{if $curr_data.status=="2"}
			<span class="x-icon x-icon-small x-icon-success"><i class="icon icon-white icon-ok"></i></span>
			{elseif  $curr_data.status=="3"}
			<span class="x-icon x-icon-small x-icon-error"><i class="icon icon-white icon-ban-circle"></i></span>
			{elseif  $curr_data.status=="1"}
			<span class="x-icon x-icon-small x-icon-warning"><i class="icon icon-white icon-warning"></i></span>
			{/if}
		</td>
		<td width="40" class="title" data-key="{$key}">
			<div class="cuted{$key}">{$curr_data.toshop|truncate:6:".."}</div>
			<div class="tips tips-small tips-info tips-no-icon pull-right hide cutedtip{$key}" style="position:absolute">
				<div class="tips-content"><a href="http://shop{$curr_data.sid}.taobao.com" target="_blank">{$curr_data.toshop}</a>
				<i class="icon icon-envelope mailto pit" data-title="{$curr_data.toshop}" data-xnick="{$curr_data.sid}" ></i>
				</div>
			</div>
		</td>
		<td>{$curr_data.message}
			{if $curr_data.type=="2"}
			<span class="x-icon x-icon-small x-icon-success x-icon{$curr_data.sid}"><i class="icon icon-white icon-ok icon{$curr_data.sid}" title="已审核的店铺"></i></span>
			{elseif  $curr_data.type=="3"}
			<span class="x-icon x-icon-small x-icon-error x-icon{$curr_data.sid}"><i class="icon icon-white icon-question-sign  icon{$curr_data.sid}" title="已驳回店铺"></i></span>
			{elseif  $curr_data.type=="1"}
			<span class="x-icon x-icon-small x-icon-warning x-icon{$curr_data.sid}"><i class="icon icon-white icon-warning icon{$curr_data.sid}" title="待审核的店铺"></i></span>
			{elseif  $curr_data.type=="4"}
			<span class="x-icon x-icon-small x-icon-warning x-icon{$curr_data.sid}"><i class="icon icon-white  icon-refresh icon{$curr_data.sid}" title="待审核的店铺"></i></span>
			{elseif  $curr_data.type=="5"}
			<span class="x-icon x-icon-small label-inverse x-icon{$curr_data.sid}"><i class="icon icon-white  icon-ban-circle icon{$curr_data.sid}" title="待审核的店铺"></i></span>
			{/if}
		</td>
		<td width="40">
		<span class="x-icon x-icon-info "><i class="icon icon-white icon-comment mailto pit" data-title="{$curr_data.toshop}" data-xnick="{$curr_data.sid}" data-msgid="{$curr_data.id}"></i></span>
		</td>
		<td width="40"><span class="count{$curr_data.id}">{$curr_data.response}</span>
		<div style="padding:4px;float:right;">
			{if $curr_data.response==0}
			<span class="x-icon x-icon-mini x-icon-disable xicon{$curr_data.id}">
				<i class="icon icon-minus-mini icon{$curr_data.id}"></i>
			</span>
			{else}
			<span class="x-icon x-icon-mini x-icon-info ">
				<i class="icon icon-white icon-plus-mini loadmore pit" data-key="{$curr_data.id}"></i>
			</span>
			{/if}
		</div>
		</td>
		<td width="50">
		{$curr_data.sendtime}
		</td>
	</tr>
	{/foreach}

      </tbody>
    </table>
<div colspan="6" class="list" style="text-align:center">

</div>
    <div>
      <ul class="toolbar pull-left">
        <li><label class="checkbox"><input type="checkbox"><a href="#">全选</a></label></li>
        <li><button class="button button-danger"><i class="icon-white icon-trash"></i>批量删除</button></li>
        <li><button class="button button-success">审核通过</button></li>
        <li><button class="button button-inverse">审核不通过</button></li>
      </ul>
      <div class="pagination pull-right" data-totalpg="{$totalpg}" data-curpg="{$curpg}" data-action="{$current}">
        {$page}
		<!--ul>
          <li class="disabled"><a href="#"><< 上一页</a></li>
          <li class="active"><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">下一页 >></a></li>
        </ul-->
      </div>
    </div>
</div>
 
 
<!-- script end -->
  </div>
        <!--内容部分-->
        </div>
</div>